package com.happyfamily.springboot.crowdsourcingplatform.dao.wang;

import com.happyfamily.springboot.crowdsourcingplatform.model.Credit;
import com.happyfamily.springboot.crowdsourcingplatform.model.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CreditDao
{
	//查看用户信誉分
	public SysUser searchCredit(@Param("uaccount") String uaccount);
	//查看我的信用详情条数统计
	public Long creditCount(@Param("starttime")String starttime,@Param("endtime")String endtime,@Param("uaccount")String uaccount);
	//查看我的信用详情
	public List<Credit> creditList(@Param("startP")Integer startP,@Param("endP")Integer endP,@Param("starttime")String starttime, @Param("endtime")String endtime, @Param("uaccount")String uaccount);
	//插入信用守约分数
	public int addCredit(@Param("uaccount")String uaccount,@Param("scoreflow")String scoreflow,@Param("details")String details,@Param("nowscore")String nowscore,@Param("ctime")String ctime);
}
